package com.treeroot.orderservice.order.client;

import com.treeroot.commonutils.result.R;
import com.treeroot.orderservice.order.client.DegradeFeignClient.getFlagDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @Author:treeRoot
 * @Email:553503639@qq.com
 * @Date: Create in 11:25 / 2022/5/19
 */
@Component
@FeignClient(name = "service-plane",fallbackFactory = getFlagDegradeFeignClient.class)
public interface Flag {
    @RequestMapping("/pc/plane/order/{planeId}/{type}/{planeType}")
//    修改航班剩余机票
    public R updatePlaneByIdOrder(@PathVariable("planeId") String planeId,@PathVariable ("type") String type,@PathVariable("planeType")String planeType);

}



